package cn.weyoungstudio.hwes.domain;

import java.io.Serializable;
import java.util.Date;


public class Log implements Serializable {


    private static final long serialVersionUID = 1L;
    private Integer logId;
    private String username;
    private String operation;
    private Date createTime;
    private Boolean logState;
    private String logDetail;

    /**
     * @return log_id
     */
    public Integer getLogId() {
        return logId;
    }

    /**
     * @param logId
     */
    public void setLogId(Integer logId) {
        this.logId = logId;
    }

    /**
     * @return username
     */
    public String getUsername() {
        return username;
    }

    /**
     * @param username
     */
    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }

    /**
     * @return operation
     */
    public String getOperation() {
        return operation;
    }

    /**
     * @param operation
     */
    public void setOperation(String operation) {
        this.operation = operation == null ? null : operation.trim();
    }

    /**
     * @return create_time
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * @param createTime
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * @return log_state
     */
    public Boolean getLogState() {
        return logState;
    }

    /**
     * @param logState
     */
    public void setLogState(Boolean logState) {
        this.logState = logState;
    }

    /**
     * @return log_detail
     */
    public String getLogDetail() {
        return logDetail;
    }

    /**
     * @param logDetail
     */
    public void setLogDetail(String logDetail) {
        this.logDetail = logDetail == null ? null : logDetail.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", logId=").append(logId);
        sb.append(", username=").append(username);
        sb.append(", operation=").append(operation);
        sb.append(", createTime=").append(createTime);
        sb.append(", logState=").append(logState);
        sb.append(", logDetail=").append(logDetail);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}